public class MyExceptions {
   public static void main( String args[] ) {
      // throwException ʾܱ쳣
      try {
         throwException();
      }
      // throwExceptionвException쳣
      catch ( Exception exception ) {
         System.err.println("Exception 쳣 main" );
      }
   }
   // throwException ׳쳣ڷûб
   public static void throwException() throws Exception  {
      try {
         System.out.println("throwException" );
         throw new Exception();      // 쳣
      }

      // ڲƥͣ쳣Ჶ
      catch( RuntimeException runtimeException ) {
         System.err.println(
             "Exception쳣throwException" );
      }
      // finally 
      finally {
         System.err.println("throwExceptionFinally " );
      }
   }
} 





















